// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "LibLevelDB",
    products: [
        .library(
            name: "LibLevelDB",
            targets: ["LibLevelDB"]),
    ],
    targets: [
        .target(
            name: "LibLevelDB",
            dependencies: ["libleveldb"],
            path: "Sources",
            exclude: ["LibLevelDB/Info.plist"],
            publicHeadersPath: "LibLevelDB",
            cxxSettings: [
                .headerSearchPath("../Binary/libleveldb.xcframework/ios-arm64_armv6_armv7_armv7s/Headers")
            ]),
        .binaryTarget(name: "libleveldb", path: "Binary/libleveldb.xcframework"),
    ],
    cxxLanguageStandard: CXXLanguageStandard.gnucxx14
)
